package com.example.kyyl.http;

import java.io.File;
import java.util.List;
import java.util.Map;

public class OkhttpUtil {
    public static final String FILE_TYPE_AUDIO = "audio/*";
    public static final String FILE_TYPE_FILE = "file/*";
    public static final String FILE_TYPE_IMAGE = "image/*";
    public static final String FILE_TYPE_VIDEO = "video/*";
    public static final String METHOD_DELETE = "DELETE";
    public static final String METHOD_GET = "GET";
    public static final String METHOD_POST = "POST";
    public static final String METHOD_PUT = "PUT";

    public static void okHttpGet2(String str, Map<String, Object> map, CallBackUtil callBackUtil) {
        okHttpGet(str, (Map<String, String>) null, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpGet(String str, Map<String, String> map, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_GET, str, map, map2, callBackUtil).execute();
    }

    public static void okHttpGet(String str, Map<String, String> map, CallBackUtil callBackUtil) {
        okHttpGet(str, map, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPost(String str, CallBackUtil callBackUtil) {
        okHttpPost(str, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPost(String str, Map<String, String> map, CallBackUtil callBackUtil) {
        okHttpPost(str, map, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPost(String str, Map<String, String> map, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_POST, str, map, map2, callBackUtil).execute();
    }

    public static void okHttpPut(String str, CallBackUtil callBackUtil) {
        okHttpPut(str, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPut(String str, Map<String, String> map, CallBackUtil callBackUtil) {
        okHttpPut(str, map, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPut(String str, Map<String, String> map, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_PUT, str, map, map2, callBackUtil).execute();
    }

    public static void okHttpDelete(String str, CallBackUtil callBackUtil) {
        okHttpDelete(str, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpDelete(String str, Map<String, String> map, CallBackUtil callBackUtil) {
        okHttpDelete(str, map, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpDelete(String str, Map<String, String> map, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_DELETE, str, map, map2, callBackUtil).execute();
    }

    public static void okHttpPostJson(String str, String str2, CallBackUtil callBackUtil) {
        okHttpPostJson(str, str2, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpPostJson(String str, String str2, Map<String, String> map, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_POST, str, str2, map, callBackUtil).execute();
    }

    public static void okHttpUploadFile(String str, File file, String str2, String str3, CallBackUtil callBackUtil) {
        okHttpUploadFile(str, file, str2, str3, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpUploadFile(String str, File file, String str2, String str3, Map<String, String> map, CallBackUtil callBackUtil) {
        okHttpUploadFile(str, file, str2, str3, map, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpUploadFile(String str, File file, String str2, String str3, Map<String, String> map, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_POST, str, map, file, str2, str3, map2, callBackUtil).execute();
    }

    public static void okHttpUploadListFile(String str, List<File> list, String str2, String str3, CallBackUtil callBackUtil) {
        okHttpUploadListFile(str, (Map<String, String>) null, list, str2, str3, callBackUtil);
    }

    public static void okHttpUploadListFile(String str, Map<String, String> map, List<File> list, String str2, String str3, CallBackUtil callBackUtil) {
        okHttpUploadListFile(str, map, list, str2, str3, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpUploadListFile(String str, Map<String, String> map, List<File> list, String str2, String str3, Map<String, String> map2, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_POST, str, map, list, str2, str3, map2, callBackUtil).execute();
    }

    public static void okHttpUploadMapFile(String str, Map<String, File> map, String str2, CallBackUtil callBackUtil) {
        okHttpUploadMapFile(str, map, str2, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpUploadMapFile(String str, Map<String, File> map, String str2, Map<String, String> map2, CallBackUtil callBackUtil) {
        okHttpUploadMapFile(str, map, str2, map2, (Map<String, String>) null, callBackUtil);
    }

    public static void okHttpUploadMapFile(String str, Map<String, File> map, String str2, Map<String, String> map2, Map<String, String> map3, CallBackUtil callBackUtil) {
        new RequestUtil(METHOD_POST, str, map2, map, str2, map3, callBackUtil).execute();
    }

    public static void okHttpDownloadFile(String str, CallBackUtil.CallBackFile callBackFile) {
        okHttpDownloadFile(str, (Map<String, String>) null, callBackFile);
    }

    public static void okHttpDownloadFile(String str, Map<String, String> map, CallBackUtil.CallBackFile callBackFile) {
        okHttpGet(str, map, (Map<String, String>) null, callBackFile);
    }

    public static void okHttpGetBitmap(String str, CallBackUtil.CallBackBitmap callBackBitmap) {
        okHttpGetBitmap(str, (Map<String, String>) null, callBackBitmap);
    }

    public static void okHttpGetBitmap(String str, Map<String, String> map, CallBackUtil.CallBackBitmap callBackBitmap) {
        okHttpGet(str, map, (Map<String, String>) null, callBackBitmap);
    }
}
